package com.lightChat.controller;

import org.junit.Test;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author sxt
 * @create 2019-11-03 21:21
 */

@RestController
public class TestController {

    @RequestMapping("/test")
    public String test(){
        return "hello , web!";
    }


    @RequestMapping("/test2")
    public String test2(){
        return "success";
    }

    @Test
    public void testUUID(){

        System.out.println(UUID.randomUUID().toString().replaceAll("-", ""));

        System.out.println(UUID.randomUUID());
    }
}
